//write api here
import service from "@/utils/request.js";
export const projectApi = {
    list(projectQuery){
        return service.get('/project/list',{params:projectQuery});
    },
    deleteOne(id){
        return service.put(`/project/deleteOne/${id}`);
    },
    deleteAll(ids) {
        return service.put(`/project/deleteAll/${ids}`);
    },
    add(projectVO) {
        return service.put(`/project/add`, projectVO)
    },
    update(projectVO){
        return service.put('/project/update',projectVO)
    },
    getById(id){
        return service.get(`project/getById/${id}`)
    },
    addByRes(researchersVo){
        return service.put(`project/addByRes`, researchersVo)
    }
}